package com.zhouwen.ssm.service.impl;

import com.zhouwen.ssm.dao.ICommodityDao;
import com.zhouwen.ssm.domain.Commodity;
import com.zhouwen.ssm.service.ICommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CommodityServiceImpl implements ICommodityService {

    @Autowired
    public ICommodityDao commodityDao;

    @Override
    public Commodity findById(int id) {
        return commodityDao.findById(id);
    }
}
